import 'package:flutter/material.dart';

import '../z_text.dart';

class TextBtn extends StatelessWidget {
  final String text;
  final Color textColor;
  final Color color;
  final GestureTapCallback? onTap;
  final double size;
  final double height;
  final EdgeInsets? margin;

  const TextBtn(
    this.text, {
    super.key,
    this.textColor = const Color(0xFFFFFFFF),
    this.color = const Color(0xFF0058D9),
    this.onTap,
    this.size = 45,
    this.height = 120,
    this.margin,
  });

  @override
  Widget build(BuildContext context) {
    return ZText(
      text: text,
      color: color,
      height: height,
      size: size,
      fontWeight: FontWeight.bold,
      textColor: textColor,
      alignment: Alignment.center,
      width: double.infinity,
      radius: 4,
      margin: margin ?? const EdgeInsets.only(left: 36, right: 36, bottom: 40),
      onTap: onTap,
    );
  }
}
